package xxl.robotlegs.extensions.modularity.impl 
{
	import flash.events.Event;
	import xxl.robotlegs.framework.api.IContext;
	
	/**
	 * ...
	 * @author XXL
	 */
	public class ModularContextEvent extends Event 
	{
		public static const CONTEXT_ADD:String = "contextAdd";
		
		private var _context:IContext;
		
		public function ModularContextEvent(type:String, context:IContext) 
		{
			super(type, true, true);
			_context = context;
		}
		
		public function get context():IContext 
		{
			return _context;
		}
		
		override public function clone():Event 
		{
			return new ModularContextEvent(type, context);
		}
		
		override public function toString():String 
		{
			return formatToString("ModularContextEvent", "context");
		}
	}

}